import request from '@/utils/request'

let databaseUrl=''


// 查询列表
export function listDataSource(query) {
  return request({
    url: '/manage/possession/list',
    method: 'get',
    params: query
  })
}

// 测试连通性
export function testDatabase(data) {
  return request({
    url: databaseUrl+'/test',
    method: 'post',
    data: data
  })
}

// 测试连通性
export function addDatabase(data) {
  return request({
    url: databaseUrl+'/add',
    method: 'post',
    data: data
  })
}

// 删除数据库
export function delDatabase(id) {
  return request({
    url: databaseUrl+'/deleteById/' + id,
    method: 'delete'
  })
}

